← Back to issue list

snapcraft should run apt-get update

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1841618
Type
issue
State
open
Author
~abitrolly
Labels
Created
2019-08-27 15:46:34.244541+00:00
Updated
2019-08-27 15:46:34.244541+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

When run from a process container, `snapcraft` could fail, because `apt-get` caches are not up to date. https://cirrus-ci.com/task/4766182000820224 The solution is to update the cache if it is too old. There are feature requests for that in `apt`. https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1429285 https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1709603 Some solutions were proposed on StackExchange. https://unix.stackexchange.com/questions/271000/update-apt-get-cache-only-if-its-older-than-certain-time?rq=1

Evaluation history

No evaluation history available.